package com.netnovelstore.pojo;

import com.alibaba.fastjson2.JSON;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel(description = "消息实体")
public class Message implements Serializable {
    private String targetImg;
    private String title;
    private String content;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}